import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/login'
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/LoginView.vue')
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/AboutView.vue')
  },
  {
    path: '/mainCrud',
    name: 'mainCrud',
    component: () => import('../views/MainCrud.vue')
  },
  {
    path:'/mainCrud2',
    name:'mainCrud',
    component:()=>import('../views/MainCrud2.vue')
  }
]

const router = new VueRouter({
  mode:'history',
  routes  
})

export default router
